home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / sox / com / commerceone / CBL / n1_0 / AllowOrCharge.mod < prev    next >
Encoding:
Extensible Markup Language  |  2000-07-03  |  4.4 KB  |  130 lines  |  [STrk/SCPL]

  1. <?xml version="1.0"?>
  2. <!DOCTYPE schema SYSTEM "urn:x-commerceone:document:com:commerceone:xdk:xml:schema.dtd$1.0">
  3.  
  4. <schema uri="urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0" >
  5.  
  6. <intro>
  7. <p>Copyright Notice</p>
  8. <p>Common Business Library 2.0<br/>
  9. Copyright 1999 Commerce One, Inc.</p>
  10. <p>Permission is granted to use, copy, modify and distribute the DTD's, schemas
  11. and modules in the Commerce One Common Business Library Version 2.0 subject to the terms
  12. and conditions specified at http://www.marketsite.net/xml/cbl/copyright.html</p> 
  13. </intro>
  14.  
  15.     <!-- 
  16.         An AllowOrCharge is a credit or fee to be applied based
  17.         on some criteria.
  18.  
  19.         The criteria may be based on the following:
  20.  
  21.         1. An optional date range.
  22.  
  23.         2. A quantity or monetary amount range.
  24.  
  25.         The AllowOrCharge may be a quantity (e.g. one gallon
  26.         free if five gallons or more are purchased), a percentage,
  27.         a monetary amount, or a tax.
  28.  
  29.         In normal usage, there may be many AllowOrCharge
  30.         associated with a product.  The SeqNo field determines
  31.         the order in which these are applied.
  32.      -->
  33.  
  34.     <elementtype name="AllowOrCharge">
  35.         <model>
  36.             <sequence>
  37.                 <!-- IsCharge is true if this describes
  38.                     a charge, false if it describes an allowance.  -->
  39.                 <element type="boolean" name="IsCharge" />
  40.                 
  41.                 <!-- The basis for this allowance or charge
  42.                     (quantity, percentage, monetary amount, or tax.)  -->
  43.                 <element type="AllowOrChgBasis" name="Basis"  />
  44.                 
  45.                 <!-- The calculation sequence indicator is used 
  46.                     when multiple allowances and/or charges are applicable. 
  47.                     If various allowances and/or charges percentages, 
  48.                     quantities, monetary amounts or rates are applicable 
  49.                     to the same base price, then the calculation sequence 
  50.                     indicator will always equal one. If the various 
  51.                     allowances and/or charges are applied against a 
  52.                     fluctuating price (constantly changing because of 
  53.                     the application of other allowances and/or charges) 
  54.                     then the sequence of calculation is indicated using 
  55.                     this data element.  Note that several allowances or
  56.                     charges may have the same sequence number, indicating
  57.                     they are applied to the same quantity.  -->
  58.                 <element type="int" name="SeqNo" />
  59.                 
  60.                 <!-- A description of what the allowance or
  61.                     charge is for.  -->
  62.  
  63.                 <element type="AllowOrChgDesc" name="Desc" />
  64.  
  65.                 <!-- The first date that this price applies.  If
  66.                     not specified, it defaults to a date in the distant
  67.                     future.   -->
  68.                 <element type="date" name="StartDate" occurs="?" />
  69.                 
  70.                 <!-- The last date that this price applies.  If
  71.                     not specified, it defaults to a date in the distant
  72.                     future.   -->
  73.                 <element type="date" name="EndDate" occurs="?" />
  74.  
  75.                 
  76.                 <!-- The quantity or dollar amount for which
  77.                     this allowance or charge applies.  If not specified,
  78.                     this allowance or charge applies to all quantites.   -->
  79.                 <choice occurs="?">
  80.  
  81.                     <!-- The quantity of this product that is
  82.                         required for this allowance or charge to apply.  -->
  83.                     <element type="QuantityRange"/>
  84.  
  85.                     <!-- The money value of this product that is
  86.                         required for this allowance or charge to apply.  -->                    
  87.                     <element type="MoneyRange"/>
  88.                     
  89.                 </choice>
  90.  
  91.                 <!-- This allowance or charge may be for a quantity,
  92.                     a money amount, a percentage, or a tax amount.   -->
  93.                 <choice>                                
  94.                     <!-- If the basis is Quantity, the quantity 
  95.                         value.  -->
  96.                     <element type="Quantity" occurs="?" />
  97.                     
  98.                     <!-- If the basis is Money, the money value.  -->
  99.                     <element type="Money" occurs="?" />
  100.                     
  101.                     <!-- If the basis is a Percent, the percentage
  102.                         value.  -->
  103.                     <element type="Decimal10_4" name="Percent" occurs="?" /> 
  104.                     
  105.                     <!-- If the basis is Tax, the Tax value.  -->
  106.                     <element type="Tax" occurs="?" />
  107.                 </choice>    
  108.             </sequence>
  109.         </model>
  110.     </elementtype>
  111.     
  112.     <!-- The basis for an allowance or charge.  -->
  113.     <datatype name="AllowOrChgBasis">
  114.         <enumeration datatype="NMTOKEN">
  115.             <option>None</option>
  116.             <option>Quantity</option>
  117.             <option>Percent</option>
  118.             <option>Money</option>
  119.             <option>Tax</option>
  120.         </enumeration>
  121.     </datatype>
  122.     
  123.     <!-- A container for a list of one or more AllowOrCharge  -->
  124.     <elementtype name="ListOfAllowOrCharge">
  125.         <model>
  126.             <element type="AllowOrCharge" occurs="+" />
  127.         </model>
  128.     </elementtype>
  129. </schema>
  130.